package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RequestMapping("index")
@RestController
public class IndexController {

    @GetMapping
    public String book() throws InterruptedException {
        log.error("请求错误日志!");
        return "hello world";
    }

}
